package main

import "fmt"

/*

 */

type person struct {
	Name string
	Age int
}

func main() {
	a := person{}
	a.Name = "hello"
	a.Age = 23
	fmt.Println(a)
	pointer_person(&a)
	fmt.Println(a)

	b := person{
		Name:"world",
		Age:33,
	}
	fmt.Println(b)
	value_person(b)
	fmt.Println(b)
}

func value_person(per person)  {
	per.Age = 22
	per.Name = "www"
	fmt.Println(per)
}

func pointer_person(per *person){
	per.Age = 10
	per.Name = "qqq"
	fmt.Println(per)
}